﻿using OpenLS.Core;

namespace OpenLS.Spreadsheet
{
    class SetSelectionUndoUnit: IUndoUnit
    {
        private readonly Range _selection;

        public SetSelectionUndoUnit(Range selection)
        {
            _selection = selection;
        }

        public void Do()
        {
            _selection.Worksheet.Selection = _selection;
        }

        public bool Merge(IUndoUnit unit)
        {
            return false;
        }
    }
}